package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author stone
 * @date 2022/11/17 14:45
 */
@RestController
public class HelloController {

    @RequestMapping("hello")
    public BaseRespVo handler1() {
        return BaseRespVo.ok();
    }
    @RequestMapping("hello/songge")
    public BaseRespVo handler2() {
        return BaseRespVo.ok();
    }
    @RequestMapping("goodbye")
    public BaseRespVo handler3() {
        return BaseRespVo.ok();
    }
    @RequestMapping("goodbye/xuejia")
    public BaseRespVo handler4() {
        System.out.println("byebye xuejia");
        return BaseRespVo.ok();
    }
}
